<ul class="menu-head-top">
	<li {if $_GPC['r']=='diypage'}class="active"{/if}><a href="{php echo webUrl('diypage')}">{php echo m('plugin')->getName('diypage')} <i class="fa fa-caret-right"></i></a></li>
</ul>


{ifp 'diypage.page.sys|diypage.page.diy'}
	<div class='menu-header'>页面管理</div>
	<ul>
		{ifp 'diypage.page.sys'}
			<li {if $_GPC['r']=='diypage.page.sys'||$_GPC['r']=='diypage.page.sys.edit'||$_GPC['r']=='diypage.page.sys.add'}class="active"{/if}><a href="{php echo webUrl('diypage/page/sys')}" style="cursor: pointer;"><i class="fa fa-th-large"></i>系统页面</a></li>
		{/if}

		{if $_W['plugin']!='merch'}
			{ifp 'diypage.page.plu'}
				<li {if $_GPC['r']=='diypage.page.plu'||$_GPC['r']=='diypage.page.plu.edit'||$_GPC['r']=='diypage.page.plu.add'}class="active"{/if}><a href="{php echo webUrl('diypage/page/plu')}" style="cursor: pointer;"><i class="fa fa-newspaper-o"></i>应用页面</a></li>
			{/if}
		{/if}

		{ifp 'diypage.page.diy'}
			<li {if $_GPC['r']=='diypage.page.diy'||$_GPC['r']=='diypage.page.diy.edit'||$_GPC['r']=='diypage.page.diy.add'}class="active"{/if}><a href="{php echo webUrl('diypage/page/diy')}" style="cursor: pointer;"><i class="fa fa-puzzle-piece"></i>自定义页面</a></li>
		{/if}

		{ifp 'diypage.page.sys.add|diypage.page.diy.add'}
			<li {if $_GPC['r']=='diypage.page.create'}class="active"{/if}><a href="{php echo webUrl('diypage/page/create')}" style="cursor: pointer;"><i class="fa fa-calendar"></i>新建页面</a></li>
		{/if}
	</ul>

{/if}
{ifp 'diypage.page.mod'}
	<ul>
		{ifp 'diypage.page.mod'}
			<li {if $_GPC['r']=='diypage.page.mod' || $_GPC['r']=='diypage.page.mod.edit'}class="active"{/if}><a href="{php echo webUrl('diypage/page/mod')}" style="cursor: pointer;"><i class="fa fa-list"></i>模块管理</a></li>
		{/if}
		{ifp 'diypage.page.mod.add'}
			<li {if $_GPC['r']=='diypage.page.mod.add'}class="active"{/if}><a href="{php echo webUrl('diypage/page/mod/add')}" style="cursor: pointer;"><i class="fa fa-th"></i>新建模块</a></li>
		{/if}
	</ul>
{/if}


{ifp 'diypage.menu'}
	<ul>
		{ifp 'diypage.menu'}
			<li {if $_GPC['r']=='diypage.menu' || $_GPC['r']=='diypage.menu.edit'}class="active"{/if}><a href="{php echo webUrl('diypage/menu')}" style="cursor: pointer;"><i class="fa fa-th"></i>菜单管理</a></li>
		{/if}
		{ifp 'diypage.menu.add'}
			<li {if $_GPC['r']=='diypage.menu.add'}class="active"{/if}><a href="{php echo webUrl('diypage/menu/add')}" style="cursor: pointer;"><i class="fa fa-calendar"></i>新建菜单</a></li>
		{/if}
	</ul>
{/if}

{ifp 'diypage.shop.layer|diypage.shop.followbar|diypage.shop.gotop'}
	<ul>
		{ifp 'diypage.shop.layer'}
			<li {if $_GPC['r']=='diypage.shop.layer'}class="active"{/if}><a href="{php echo webUrl('diypage/shop/layer')}"><i class="fa fa-book"></i>悬浮按钮</a></li>
		{/if}
		{ifp 'diypage.shop.gotop'}
			<li {if $_GPC['r']=='diypage.shop.gotop'}class="active"{/if}><a href="{php echo webUrl('diypage/shop/gotop')}"><i class="fa fa-history"></i>返回顶部</a></li>
		{/if}
		{ifp 'diypage.shop.followbar'}
			<li {if $_GPC['r']=='diypage.shop.followbar'}class="active"{/if}><a href="{php echo webUrl('diypage/shop/followbar')}"><i class="fa fa-line-chart"></i>关注条</a></li>
		{/if}
	</ul>
{/if}

{ifp 'diypage.shop.page|diypage.shop.menu'}
	<ul>
		{ifp 'diypage.shop.page'}
			<li {if $_GPC['r']=='diypage.shop.page'}class="active"{/if}><a href="{php echo webUrl('diypage/shop/page')}" style="cursor: pointer;"><i class="fa fa-book"></i>页面设置</a></li>
		{/if}
		{ifp 'diypage.shop.menu'}
			<li {if $_GPC['r']=='diypage.shop.menu'}class="active"{/if}><a href="{php echo webUrl('diypage/shop/menu')}" style="cursor: pointer;"><i class="fa fa-credit-card"></i>菜单设置</a></li>
		{/if}
	</ul>
{/if}

{ifp 'diypage.temp'}
	<ul>
		<li {if $_GPC['r']=='diypage.temp'}class="active"{/if}><a href="{php echo webUrl('diypage/temp')}" style="cursor: pointer;"><i class="fa fa-file-text"></i>全部模板</a></li>
		{ifp 'diypage.temp.category'}
			<li {if $_GPC['r']=='diypage.temp.category'}class="active"{/if}><a href="{php echo webUrl('diypage/temp/category')}" style="cursor: pointer;"><i class="fa fa-qrcode"></i>模板分类</a></li>
		{/if}
	</ul>
{/if}